class ntpdate {
     define cron_random($command,$hour) {
     cron { $name:
     command => $command,
     minute  => inline_template("<%= (hostname+name).hash.abs % 60 %>"),
     hour    => $hour,
     ensure  => "present",

   }
}
     cron_random { "ntpdate":
     command => "/usr/sbin/ntpdate ntp.h3.jl&&/sbin/hwclock -w",
     hour => '*/2'
}


}
